package com.example.demo.model;

import java.io.Serializable;
import java.util.Random;

public class UserEntity implements Serializable {

    Long id;
    String username;
    String password;
    String status;

    public UserEntity(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String say(String param) {
        return "say [" + param + "] " + new Random().nextInt(1000);
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
